package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the po_sow_tbl database table.
 * 
 */
@Entity
@Table(name="po_sow_tbl")
public class PoSow extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="POSOW_CODE")
	private int posowCode;

	@Temporal(TemporalType.DATE)
	@Column(name="CLNT_CONT_END_DATE")
	private Date clntContEndDate;

	@Temporal(TemporalType.DATE)
	@Column(name="CLNT_CONT_STRT_DATE")
	private Date clntContStrtDate;

	@Column(name="POSOW_NUM")
	private String posowNum;

	@Column(name="PROJ_NAME")
	private String projName;

	//bi-directional many-to-one association to EmployeeProject
	@OneToMany(mappedBy="poSow")
	private List<EmployeeProject> employeeProjects;

	//bi-directional many-to-one association to Account
	@ManyToOne
	@JoinColumn(name="POSOW_ACCT_CODE")
	private Account account;

	public PoSow() {
	}

	public int getPosowCode() {
		return this.posowCode;
	}

	public void setPosowCode(int posowCode) {
		this.posowCode = posowCode;
	}

	public Date getClntContEndDate() {
		return this.clntContEndDate;
	}

	public void setClntContEndDate(Date clntContEndDate) {
		this.clntContEndDate = clntContEndDate;
	}

	public Date getClntContStrtDate() {
		return this.clntContStrtDate;
	}

	public void setClntContStrtDate(Date clntContStrtDate) {
		this.clntContStrtDate = clntContStrtDate;
	}

	public String getPosowNum() {
		return this.posowNum;
	}

	public void setPosowNum(String posowNum) {
		this.posowNum = posowNum;
	}

	public String getProjName() {
		return this.projName;
	}

	public void setProjName(String projName) {
		this.projName = projName;
	}

	public List<EmployeeProject> getEmployeeProjects() {
		return this.employeeProjects;
	}

	public void setEmployeeProjects(List<EmployeeProject> employeeProjects) {
		this.employeeProjects = employeeProjects;
	}

	public Account getAccount() {
		return this.account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

}